package com.ruoyi.unit.system.service.impl;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.unit.system.domain.MdUnitMeasure;
import com.ruoyi.unit.system.mapper.MesUnitMapper;
import com.ruoyi.unit.system.service.MesUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MesUnitServiceImpl implements MesUnitService {

    @Autowired
    private MesUnitMapper mesUnitMapper;

    @Override
    public List<MdUnitMeasure> list(SysRole role) {
        return mesUnitMapper.selectMdUnitMeasureList(new MdUnitMeasure());
    }

    @Override
    public void add(MdUnitMeasure mdUnitMeasure) {
        mesUnitMapper.insertMdUnitMeasure(mdUnitMeasure);
    }
}
